package com.xxin.service.impl;

import com.xxin.mapper.DepartmentMapper;
import com.xxin.pojo.entity.Department;
import com.xxin.resp.Result;
import com.xxin.service.DepartmentService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 小欣
 * @version 1.0
 * @since 1.8
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {
	
	@Resource
	private DepartmentMapper departmentMapper;
	
	@Override
	public List<Department> getDepartmentList() {
		return departmentMapper.selectAll();
	}
}
